import React from 'react';
import ReactDOM from 'react-dom/client';
import { ConfigProvider, App } from 'antd';
import { RouterProvider } from 'react-router-dom';
import { XProvider } from '@ant-design/x';
import router from './router';
import './index.css';
import { GlobalMessageProvider } from './utils/globalMessage';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <ConfigProvider>
      <App>
        <GlobalMessageProvider>
          <XProvider>
            <RouterProvider router={router} />
          </XProvider>
        </GlobalMessageProvider>
      </App>
    </ConfigProvider>
  </React.StrictMode>
); 